package com.hsoft.zhxy.app.xtgl_02_01.controller;

import com.alibaba.fastjson.JSONObject;
import com.hsoft.zhxy.app.xtgl_02_01.model.vo.DlrzVO;
import com.hsoft.zhxy.app.xtgl_02_01.service.JcggDlrzService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@Api(tags = "xtgl_02_01 登录日志")
@Log4j2
@Validated
@RestController
@RequestMapping(value = "/xtgl_02_01/jcggDlrz/", produces = "application/json;charset=UTF-8")
public class JcggDlrzController {

    @Autowired
    private JcggDlrzService jcggDlrzService;



    @ApiOperation(value = "查询分页列表数据", notes = "查询分页列表数据")
    @GetMapping("findDlrzListByPage")
    public JSONObject findDlrzListByPage(DlrzVO dlrzVO,
                                         @Valid @NotNull(message = "页码为空") long page,
                                         @Valid @NotNull(message = "分页行数为空") long pageSize) {
        return jcggDlrzService.findDlrzListByPage(dlrzVO, page, pageSize);
    }
    
    // 各方法命名需要以 find、add、update、delete开头，遵循驼峰原则


}